package com.jason.www.dao;

import com.jason.www.pojo.GiftCard;

import java.util.List;

public interface GiftCardMapper {
    void addGiftCard(GiftCard giftCard);

    void addGiftCardList(List<GiftCard> giftCardList);

    void deleteGiftCardById(Long id);

    void deleteGiftCardByIds(List<Long> ids);

    GiftCard selectGiftCardByKey(Long id);

    List<GiftCard> selectGiftCardByKeys(List<Long> ids);

    List<GiftCard> selectGiftCardByPage(GiftCard giftCard);

    int updateGiftCard(GiftCard oldGiftCard);

    int updateGiftCardList(List<GiftCard> giftCardList);

    Long selectMaxId();

    Long getTotalGiftCard(GiftCard giftCard);
}